﻿// -------------------------------------------------------------------------
//    @FileName         :    NFMMOGuildPlayerPlugin.cpp
//    @Author           :    gaoyi
//    @Date             :    2025-02-27
//    @Email			:    445267987@qq.com
//    @Module           :    NFMMOGuildPlayerPlugin
//
// -------------------------------------------------------------------------

#include "NFMMOGuildPlayerPlugin.h"
#include "NFMMOGuildPlayerPlugin.h"
#include "NFComm/NFPluginModule/NFIPluginManager.h"
#include "NFGuildPlayerModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFMMOGuildPlayerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFMMOGuildPlayerPlugin)
};

#endif


//////////////////////////////////////////////////////////////////////////

int NFMMOGuildPlayerPlugin::GetPluginVersion()
{
    return 0;
}

std::string NFMMOGuildPlayerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFMMOGuildPlayerPlugin);
}

void NFMMOGuildPlayerPlugin::Install()
{
    REGISTER_MODULE(m_pObjPluginManager, NFGuildPlayerModule, NFGuildPlayerModule);
}

void NFMMOGuildPlayerPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pObjPluginManager, NFGuildPlayerModule, NFGuildPlayerModule);
}

bool NFMMOGuildPlayerPlugin::InitShmObjectRegister()
{
    return true;
}